package com.mtr.databoard.domain.resources;

import org.springframework.stereotype.Component;

@Component
public class ResourceEntity {

    public  ResourceEntity(){}
    private String entityType;
    private String entityId;

    public ResourceEntity(String entityType, String entityId) {
        this.entityType = entityType;
        this.entityId = entityId;
    }
    public ResourceEntity(String entityType, String groupName,String entityId) {
        this.entityType = entityType+(groupName!=null&&groupName.length()>0?"/"+groupName:"");
        this.entityId = entityId;
    }


    public String getEntityType() {
        return entityType;
    }

    public void setEntityType(String entityType) {
        this.entityType = entityType;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }
}
